package customExercise;

import java.util.Date;
import java.util.List;
import java.util.Scanner;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.lang.tree.TreeNode;
import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author: Clarence
 * @Date: 2022/7/12 22:27
 */
@Slf4j
public class SelfTest {

    public static void main(String[] args) {
        Date startTime = new Date();
        log.info("开始时间{}",startTime);
        for (int i = 0; i < 1000; i++) {
            for (int j = 0; j < 1000; j++) {
                log.info("i的值{}，j的值{}",i,j);
            }
        }
        Date endTime = new Date();
        log.info("结束时间{}",endTime);
        log.info("总共耗时{}", DateUtil.between(startTime,endTime, DateUnit.SECOND));
    }
}
